package cn.fxyz.entity;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
public class Orders implements java.io.Serializable {

	private Integer id;
	private Dinnertable dinnertable;
	private Date orderdate;
	private Float totalprice;
	private Integer orderstatus;
	private User user;
	private Set orderdetails = new HashSet(0);

	public Orders() {
	}
	
	

	public User getUser() {
		return user;
	}



	public void setUser(User user) {
		this.user = user;
	}



	public Orders(Integer id) {
		this.id = id;
	}

	public Orders(Integer id, Dinnertable dinnertable, Date orderdate,
			Float totalprice, Integer orderstatus, Set orderdetails) {
		this.id = id;
		this.dinnertable = dinnertable;
		this.orderdate = orderdate;
		this.totalprice = totalprice;
		this.orderstatus = orderstatus;
		this.orderdetails = orderdetails;
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Dinnertable getDinnertable() {
		return this.dinnertable;
	}

	public void setDinnertable(Dinnertable dinnertable) {
		this.dinnertable = dinnertable;
	}

	public Date getOrderdate() {
		return orderdate;
	}



	public void setOrderdate(Date orderdate) {
		this.orderdate = orderdate;
	}



	public Float getTotalprice() {
		return this.totalprice;
	}

	public void setTotalprice(Float totalprice) {
		this.totalprice = totalprice;
	}

	public Integer getOrderstatus() {
		return this.orderstatus;
	}

	public void setOrderstatus(Integer orderstatus) {
		this.orderstatus = orderstatus;
	}

	public Set getOrderdetails() {
		return this.orderdetails;
	}

	public void setOrderdetails(Set orderdetails) {
		this.orderdetails = orderdetails;
	}

}